<MudDataGrid T="Item" VirtualizeServerData="ServerDataFunc" Virtualize="true" ReadOnly="false" EditMode="@DataGridEditMode.Cell">
    <Columns>
        <PropertyColumn Property="x => x.Name"/>
        <PropertyColumn Property="x => x.Age"/>
    </Columns>
</MudDataGrid>

@code {
    public static string __description__ = @"Test editing values in cells of the DataGrid.";

    private readonly IEnumerable<Item> _items = new List<Item>
    {
        new("John", 45),
        new("Johanna", 23),
        new("Steve", 32)
    };

    public record Item(string Name, int Age);

    private async Task<GridData<Item>> ServerDataFunc(GridStateVirtualize<Item> gridState, CancellationToken token)
    {
        await Task.CompletedTask;

        var result = _items
            .Skip(gridState.StartIndex)
            .Take(gridState.Count)
            .ToList();

        return new GridData<Item>
        {
            Items = result,
            TotalItems = _items.Count()
        };
    }
}